import 'package:flutter/material.dart';
import 'package:love_app/pages/login_register/ui/login_input_ui.dart';
import 'package:love_app/routes/application.dart';
import 'package:love_app/routes/routes.dart';
import '../../common/su.dart';

class LoginPage extends StatefulWidget {
  @override
  _LoginPageState createState() => _LoginPageState();
}

class _LoginPageState extends State<LoginPage> {
  @override
  Widget build(BuildContext context) {
    var fun = () {
      Application.router.navigateTo(context, Routes.registerPage);
    };
    return Scaffold(
      appBar: Su().appBar(
        '登录',
        actionText: '注册',
        onActionClick: fun,
      ),
      body: _body(),
    );
  }

  Widget _body() {
    return Container(
      margin: EdgeInsets.only(
        top: Su().h(106),
      ),
      child: LoginInput(),
    );
  }
}
